package liangtWorkSpace.lambda;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * @ClassName LamdbaService
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/16 13:19
 */
public class LamdbaService {

    public String getSay(LambdaInterface lambdaInterface) {
        return lambdaInterface.say() + lambdaInterface.appleWeight() + "g重的苹果";
    }


    public static String processFIle() throws IOException {
        BufferedReader br = new BufferedReader(new FileReader(""));
        return br.readLine();
    }

    public static String processFIle(BufferReaderProcessor bufferReaderProcessor) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader(""));
        return bufferReaderProcessor.process(br);
    }

    public static void main(String[] args) throws IOException {
        String oneLine = processFIle((BufferedReader bufferedReader) -> bufferedReader.readLine());
        String towLine = processFIle((BufferedReader bufferedReader) -> bufferedReader.readLine() + bufferedReader.readLine());
    }
}
